﻿using Pay.TO;
using Pay.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.DTO {
    /// <summary>
    /// 购买节点名额
    /// </summary>
    [Serializable]
    public class buy_maker_quota_model {
        /// <summary>
        /// 购买数量
        /// </summary>
        public int buy_num { get; set; }
        /// <summary>
        /// 联系方式
        /// </summary>
        public string mobile { get; set; }
    }
    /// <summary>
    /// 申请角色
    /// </summary>
    [Serializable]
    public class apply_user_type_model {
        /// <summary>
        /// 开通角色（6:创客，7：节点商城，8：超级节点，9：市级分公司） 
        /// </summary>
        public UserType user_type { get; set; }
        /// <summary>
        /// 开通账号
        /// </summary>
        public string mobile{ get; set; }
        /// <summary>
        ///转账凭证
        /// </summary>
        public string transfer_voucher { get; set; }
    }

    /// <summary>
    ///  邀请好友开通角色
    /// </summary>
    [Serializable]
    public class invite_user_type_model{
        /// <summary>
        /// 发出邀请的用户手机号
        /// </summary>
        public string invitation_mobile{ get; set; }
    }
    /// <summary>
    ///  邀请好友开通角色
    /// </summary>
    [Serializable]
    public class invite_user_type_model_ex : apply_user_type_model {
        /// <summary>
        /// 发出邀请的用户手机号
        /// </summary>
        public string invitation_mobile { get; set; }
    }

    /// <summary>
    /// 业务员列表
    /// </summary>
    [Serializable]
    public class promoter_list_model {
        /// <summary>
        /// 邀请审核记录Id
        /// </summary>
        public long id { get; set; }
        /// <summary>
        /// 业务员名称（开通账号）
        /// </summary>
        public string promoter { get; set; }
        /// <summary>
        /// 所属业务员（邀请人）
        /// </summary>
        public string belong_to_promoter { get; set; }
        /// <summary>
        /// 角色
        /// </summary>
        public UserType user_type { get; set; }
        /// <summary>
        /// 角色枚举描述
        /// </summary>
        public string user_type_title { get { return user_type.ToDescription(); } }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? update_time { get { return update_time_value.ToDateTime(); } }
        /// <summary>
        /// 更新时间
        /// </summary>
        public long? update_time_value { get; set; }
    }

    /// <summary>
    /// 我的业务员开通审核列表
    /// </summary>
    [Serializable]
    public class promoter_up_grade_audit_list_model: promoter_list_model {
        /// <summary>
        /// 申请时间
        /// </summary>
        public DateTime apply_time { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>
        public long apply_time_value { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public EUpGradeAudit up_grade_audit { get; set; }
        /// <summary>
        /// 状态枚举描述
        /// </summary>
        public string up_grade_audit_title { get {return  this.up_grade_audit.ToDescription(); } }
        /// <summary>
        ///转账凭证
        /// </summary>
        public string transfer_voucher { get; set; }
    }
    }
